package com.design.model;

/**
 * def
 *
 * @author lw
 * @date 2023/12/4 15:28
 **/
public class LightOffCommand implements Command{

    private Light light;

    public LightOffCommand(Light light) {
        this.light = light;
    }

    @Override
    public void execute() {
        light.turnOff();
    }
}
